Editing ColdFusion and Active Server files in Dreamweaver

Dreamweaver displays icons to identify blocks of ColdFusion Markup Language (CFML) or Active Server Page (ASP) code in the Document window whenever possible.

Note: By default, Dreamweaver never rewrites HTML found in ColdFusion and Active Server files.

To edit a block of ASP code from the Document window:

1 Click the yellow ASP marker to select it.
2 In the Property inspector, click the Edit button.
3 Edit the ASP code in the dialog box that appears and then click OK.

To edit a block of CFML code from the Document window:

1 Click the CFML marker to select it.
2 In the Property inspector, do one of the following:
Click the Attributes button to edit the tag's existing attributes and their values or to add new ones.
Click the Content button to edit the content that appears between the opening and closing CFML tags. If the selected tag is an empty tag (that is, if it has no closing tag), the Content button is disabled.

If you don't see markers or highlighted text where you know ASP or CFML code exists, first make sure that View > Invisible Elements is enabled. If that option is selected and the icons are still not visible, then Dreamweaver can't display the code as CFML or ASP. This can happen, for example, when conditionals are inserted into HTML tags, as in the following ASP code:

<input type="checkbox" name="month" value="October"
<% if month="October" then %>checked<% end if %>>

To edit CFML or ASP code when a marker or highlighted text does not appear:

1 If you can select the tag or object that contains the code, use the Quick Tag Editor to edit the code. See Editing an HTML tag in the Document window. Otherwise, follow these steps:
2 In the Document window, position the insertion point near where you know the CFML or ASP code exists.
3 Choose Window > HTML Source to open the HTML Source inspector.
4 Click the title bar of the HTML Source inspector to shift keyboard focus to that inspector.
Do not click in the middle of the inspector or you will move the insertion point away from the CFML or ASP code you want to edit.
5 Edit the code directly in the HTML Source inspector.
6 Press F10 to close the HTML Source inspector and return to the Document window.

For information about processing CFML or ASP code and viewing the results in the Document window, see Customizing the interpretation and appearance of third-party tags.